import { createApp } from 'vue'
import { createPinia } from 'pinia'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
import ArcoVue from '@arco-design/web-vue'
import '@arco-design/web-vue/dist/arco.css'

import App from './App.vue'
import router from './router'
import "@/plugins/axios";
import "@/access";
import {useLoginUserStore} from "@/stores/loginUserStore.ts";
import "bytemd/dist/index.css";

const app = createApp(App)

app.use(createPinia())
app.use(router)
// app.use(ElementPlus)
app.use(ArcoVue)

// 创建 store 实例
const loginUserStore = useLoginUserStore();

// 恢复状态
loginUserStore.restoreState();

app.mount('#app')
